<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/1/9
  Time: 14:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page
        contentType="text/html;charset=UTF-8" %>
<%@ include
        file="/webpage/include/taglib.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>店铺详情</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet"
          type="text/css"
          href="${ctxStatic}/plugin/layui-v225/css/layui.css">
    <link rel="stylesheet" href="//at.alicdn.com/t/font_tnyc012u2rlwstt9.css" media="all" />
    <style>
        .wrap{
            padding: 18px 26px;
        }
    </style>
</head>
<body class="childrenBody">
<div class="wrap">
    <div class="layui-form news_list">
        <table class="layui-table">
            <colgroup>
                <col>
                <col>
                <col>
                <col>
            </colgroup>
            <thead>
            <%--店铺名称	营业执照	身份证号码	身份证名字	状态	申请时间	操作--%>
            <tr>
                <th class="tc">公司名称 </th>
                <th class="tc" colspan="5">{{$data->Name}}</th>
            </tr>
            </thead>
            <tbody class="news_content">
            <tr>
                <td class="tc" rowspan="4">营业执照片 </td>
                <td class="tc" rowspan="4" colspan="2" >
                    <img src="{{$data->BusinessLicenseImg}}" style="width: 200px; height:140px;">
                </td>
            </tr>
            <tr>
                <td class="tc" rowspan="3"> 身份证照片</td>
                <td class="tc" colspan="2" rowspan="3">
                    <img src="{{$data->StoreImg}}" style="width: 200px; height:140px;">
                </td>
            </tr>
            <tr> </tr>
            <tr> </tr>
            <tr>
                <td class="tc" >营业执照编号</td>
                <td class="tc" colspan="2">{{$data->BusinessLicense}}</td>
                <td class="tc"> 身份证号</td>
                <td class="tc" colspan="2">{{$data->IdNumber}}</td>
            </tr>
            <tr>
                <td class="tc"> 身份证名字</td>
                <td class="tc" colspan="2">{{$data->IdName}}</td>
                <td class="tc"> 联系方式</td>
                <td class="tc" colspan="2">{{$data->Mobile}}</td>
            </tr>
            <tr>
                <td class="tc">审核</td>
                <td class="tc" colspan="2">
                    <button class="layui-btn" onclick="auditing(1,1)">审核通过</button></td>
                <td class="tc"> <button class="layui-btn" onclick="auditing(1,0)">审核不通过</button></td>
                <td class="tc" colspan="2"></td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
<script>
    <%--定义js路径--%>
    var js_path="${ctxStatic}/dfcshop/js/admin/";
    var data_path="${ctxStatic}/dfcshop/data/";

</script>
<script type="text/javascript"
        src="${ctxStatic}/plugin/layui-v225/layui.js"></script>
<script>
    //删除分类
    function auditing(id,status) {
        var msg=status?'您确定要通过审核吗？':'您确定要不通过审核吗？';
        var num=status?1:2;
        layer.confirm(msg, {
            btn: ['确定','取消'] //按钮
        }, function(){
            $.post("{{url('admin/buyerauditing/')}}/"+id,{'IsValidated':num,'_method':'post','_token':"{{csrf_token()}}"},function (data) {
                if(data.status==0){
                    location.href = location.href;
                    layer.msg(data.msg, {icon: 6});
                }else{
                    layer.msg(data.msg, {icon: 5});
                }
            });
//            layer.msg('的确很重要', {icon: 1});
        }, function(){

        });
    }
</script>
</body>
</html>
